package com.zhiliao.memo.demo2;

/**
 * @author zouxf Department:3cs
 * @copyright Copyright 2021-2021 JD.COM All Right Reserved
 * @create Date 2021/7/2 8:36
 * @description
 * @lastModifiedBy
 * @lastModifiedDate(yyyy/MM/dd)
 * @see
 */
public class Demo2Client {
    public static void main(String[] args) {

    }
}
class A{
    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    String state;
    // 创建记录状态的对象
    public BB createBB(){return new BB(this.state);}
    public void reset(BB bb){
        this.state = bb.getS();
    }
}
class BB{
    String s;

    public BB(String s) {
        this.s = s;
    }

    public String getS() {
        return s;
    }

    public void setS(String s) {
        this.s = s;
    }
}
